let url = require('url');
let queryString = require('querystring');
let str = 'http://zeihang:saber778899@gitee.com:80/index.html?a=1&b=2#top'
let {query} = url.parse(str);

console.log(queryString.parse(query));

